<!-- /ezadm/template/board/ezbbs_add_insert.htm :: 2010-03-04 :: hamhaja -->
<script type="text/javascript">
//<![CDATA[
$(function() {
	document.forms['insert_form'].elements['ebcfad_id'].focus();

	//폼체크
	var container1 = $("div#lay_error_container1");
	$("form[name=insert_form]").validate({
		errorContainer: container1,
		errorLabelContainer: $("ol", container1),
		wrapper: "li",
		rules: {
			ebcfad_id: {
				lowernum: true
			},
			ebcfad_width: {
				number: true,
				min: 1,
				max: 100
			},
			ebcfad_height: {
				number: true,
				min: 1,
				max: 100
			}
		}
	});
});
//]]>
</script>
<form name="insert_form" method="post" action="<?=$_SERVER['PHP_SELF']?>" target="form_receiver">
<input type="hidden" name="g_job" value="<?=$g_job?>" />
<input type="hidden" name="g_subjob" value="insert" />
<input type="hidden" name="ebcfad_ebcfid" value="<?=$_GET['ebcf_id']?>" />

	<table class="form2">
	<caption>게시판 추가항목 등록</caption>
	<col width="20%" /><col /><col width="16%" /><col width="16%" />
	<tr>
		<th>아이디</th>
		<td><input type="text" name="ebcfad_id" class="full required" title="아이디를 입력하세요.(소문자 or 숫자)" /></td>
		<th>출력순서</th>
		<td><?=$Html->full_select_form('ebcfad_sort', range(1, $max_sort + 1), $max_sort + 1, '_value', '_value')?></td>
	</tr>
	<tr>
		<th>항목명</th>
		<td colspan="3"><input type="text" name="ebcfad_pname" class="full required" title="항목명을 입력하세요." /></td>
	</tr>
	<tr>
		<th>폼형태</th>
		<td colspan="3"><table>
			<col width="60%" /><col width="20%" /><col width="20%" />
			<tr>
				<th>구분</th>
				<th>너비</th>
				<th>높이</th>
			</tr>
			<tr>
				<td class="center"><?=$Html->radio_button('ebcfad_form', $EzbbscnfAdd->get_form_types(), 'I')?></td>
				<td><input type="text" name="ebcfad_width" class="full center required" value="20" title="폼너비를 입력하세요.(1~100)" /></td>
				<td><input type="text" name="ebcfad_height" class="full center required" value="1" title="폼높이를 입력하세요.(1~100)" /></td>
			</tr>
		</table></td>
	</tr>
	<tr>
		<th>출력여부?</th>
		<td colspan="3"><?=$Html->flag_button('ebcfad_display', '1', '', array('출력하지 않습니다.', '출력합니다.'))?></td>
	</tr>
	</table>

	<div id="lay_error_container1" class="error_container">
		<ol>
			<li>에러 메세지!!</li>
		</ol>
	</div>


	<div class="util">
		<input type='submit' value='추가' class='button' />
		<input type='reset' value='초기화' class='button' />
		<input type='button' value='닫기' class='button' onclick='self.close();' />
	</div>

</form>